﻿package airdnd.world {
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	import airdnd.WorldDesign;
	public class WorldTile extends MovieClip{
		//var tileNumber:TextField = new TextField();
		public var tileSq:Sprite = new Sprite();
		public var tileID:int = new int();
		public function WorldTile(tileColor:uint = 0xFFFFFF) {
			
			addChild(tileSq);
			
			tileSq.graphics.lineStyle(1,0x000000); //thickness and color of the border
			tileSq.graphics.beginFill(tileColor);  //begin filling with this colour			
			tileSq.graphics.drawRect(0,0,WorldDesign.tileDim,WorldDesign.tileDim); //padding x and y, and X and Y dimensions
			tileSq.graphics.endFill(); //stop the fill after it fills those dimensions
			
		}
	}	
}